<template>
    <div>
        <van-tabbar v-model="active" active-color="#ee0a24" inactive-color="#000">
            <van-tabbar-item icon="home-o" @click="gohome">首页</van-tabbar-item>
            <van-tabbar-item icon="search">品牌</van-tabbar-item>
            <van-tabbar-item icon="delete-o">购物袋</van-tabbar-item>
            <van-tabbar-item icon="medal-o" @click="go()">我的中免</van-tabbar-item>
        </van-tabbar>
    </div>
</template>

<script>
export default {
    data() {
        return {
            active: 0
        }
    },
    methods: {

        go() {
            this.$router.push('/mycom')
        },
        gohome() {
            this.$router.push('/home')
        }
    }
}
</script>

<style>

</style>